/// 
/// Author: Jeff Liu
/// Date: 2021-12-29 16:45:07
/// LastEditTime: 2022-01-03 21:10:52
/// LastEditors: Jeff Liu
/// Description: 
/// FilePath: /hcc/src/HCC/DocRepository/SqlDocRegModel.cls
/// Jeff.liu@intersytems.com
/// 
/// Description
Class HCC.DocRepository.SqlDocRegModel Extends (%RegisteredObject, %XML.Adaptor)
{

/// Description
Parameter XMLNamespace = "urn:hl7-org:v3";

/// 消息创建时间
/// 
Property MsgCreateTime As %String;

/// 注册消息流水号ID
Property RegID As %String;

/// 发送方设备代码
Property SenderID As %String;

/// 文档流水号 （文档id）
/// 
Property DocNum As %String;

/// 患者姓名
Property PatName As %String;

/// 文档类型代码
Property DocType As %String;

/// 文档类型代码
Property DocName As %String;

/// 接收方设备代码
Property ReceiverID As %String;

// 文档生成时间

Property DocGenDate As %String;

/// 文档版本
Property DocVersion As %String;

/// base64编码的注册文档
Property DocCode64 As %String(MAXLEN = "");

/// 住院号
Property InPatNum As %String;

/// 病人ID
Property PatNum As %String;

/// 门诊号
Property OutPatNum As %String;

/// 患者就诊时间开始
Property EncounterTimeStart As %String;

/// 患者就诊时间结束
Property EncounterTimeEnd As %String;

/// 患者姓名
Property PatientName As %String;

/// 文档来源医院ID
Property DocOriginHosCode As %String;

/// 文档来源医院名称
/// 
Property DocOriginHosName As %String;

/// 文档创作者代码
Property DocAuthorCode As %String;

/// 文档创作者名称
Property DocAuthorName As %String;

/// 文档保管单位代码
Property DocCustodianCode As %String;

/// 文档保管单位名称
Property DocCustodianName As %String;

/// 科室代码
Property DeptCode As %String;

}
